package aiingames;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class Config {

	public static final double TIME_STEP_SIZE = 1. / 10;
	public static final double PNeighborhoddRange = 10;
	public static final double STATIC_FORCE_RESOLUTION = 0.1;
	public static final double MaxWallSensingRange = 10;
	public static final int STEP_SIZE = 2;
	public static final int X_MAX = 28;
	public static final int X_MIN = 0;
	public static final int Y_MAX = 16;
	public static final int Y_MIN = 0;
	public static final double WEIGHT_FACTOR = 0.3;
	public static final double EGREEDY = 0.3;
	public static final int POS_REWARD = 1;
	public static Map<Integer, ArrayList<String>> tileCodedMap = new HashMap<Integer, ArrayList<String>>();

	public static void generateLookupTable() {

		for (int i = 0; i < X_MAX; i += STEP_SIZE) {
			for (int j = 0; j < Y_MAX; j += STEP_SIZE) {
				for (int k = 0; k < X_MAX; k += STEP_SIZE) {
					for (int l = 0; l < Y_MAX; l += STEP_SIZE) {
						// ........X.............Y...........VX........VY
						int key = i * 1000000 + j * 10000 + k * 100 + l;
						tileCodedMap.put(key, new ArrayList<String>(5));
					}
				}
			}
		}

	}
}